package com.xiehua;

import com.xiehua.task.ApplicationStartedEventListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@ServletComponentScan
@MapperScan("com.xiehua.*.dao")
@SpringBootApplication
public class BootdoApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(BootdoApplication.class);
        app.addListeners(new ApplicationStartedEventListener());
        app.run(args);
    }

}
